﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="AccessoryTJ.aspx.cs" Inherits="WXYW.AccessoryTJ" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitlePlaceHolder" runat="server">
    按年按月按平台消耗统计
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ButtonPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="RightContentPlaceHolder" runat="server">
    <table>
        <tr>
            <td>
                原料号
            </td>
            <td>
                <asp:TextBox ID="modelNOTextBox" runat="server"></asp:TextBox>
            </td>
            <td>
                原料型号
            </td>
            <td>
                <asp:DropDownList ID="typeDropDownList" runat="server">
                </asp:DropDownList>
            </td>
            <td>
                平台
            </td>
            <td>
                <asp:DropDownList ID="servicestationDropDownList" runat="server">
                </asp:DropDownList>
            </td>
            <td>
                起始年
                <asp:DropDownList ID="yearDropDownList" runat="server">
                </asp:DropDownList>
            </td>
            <td>
                月
                <asp:DropDownList ID="monthDropDownList" runat="server">
                </asp:DropDownList>
            </td>
            <td>
                终止年
                <asp:DropDownList ID="endYearDropDownList" runat="server">
                </asp:DropDownList>
            </td>
            <td>
                月
                <asp:DropDownList ID="endMonthDropDownList" runat="server">
                </asp:DropDownList>
            </td>
            <td>
                <asp:Button ID="searchButton" runat="server" Text="查询" OnClick="searchButton_Click" Width="80px" />
            </td>
        </tr>
    </table>
    <asp:GridView ID="tjGridView" runat="server" AutoGenerateColumns="False" EmptyDataText="没有记录"
        Width="100%" PageSize="20" CssClass="tableList" AllowPaging="True"
        onrowdatabound="tjGridView_RowDataBound">
        <Columns>
            <asp:TemplateField HeaderImageUrl="~/image/operateicon/button_Select.gif">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="IDLbl" runat="server"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField HeaderText="原料号" DataField="ModelNO" >
            <HeaderStyle Wrap="False" />
            </asp:BoundField>
            <asp:BoundField HeaderText="原料型号" DataField="Class" >
            <HeaderStyle Wrap="False" />
            <ItemStyle Wrap="False" />
            </asp:BoundField>
            <asp:TemplateField HeaderText="原料描述">
                <ItemTemplate>
                    <asp:TextBox ID="decTxtBox" runat="server" CssClass="NOBorderTxtBox" TextMode="MultiLine"
                                    Rows="1" Text='<%# Bind("Description") %>' ReadOnly="true" Width="90%"></asp:TextBox>
                </ItemTemplate>
                <HeaderStyle Wrap="False" />
                <ItemStyle Wrap="False" />
            </asp:TemplateField>
            <asp:BoundField HeaderText="库存数量" DataField="Count" >
            <HeaderStyle Wrap="False" />
            <ItemStyle Wrap="False" />
            </asp:BoundField>
            <asp:BoundField HeaderText="消耗数量" DataField="UseTimes" >
            <HeaderStyle Wrap="False" />
            <ItemStyle Wrap="False" />
            </asp:BoundField>
            <asp:BoundField HeaderText="库存金额" DataField="TotalCHPrice" >
            <HeaderStyle Wrap="False" />
            <ItemStyle Wrap="False" />
            </asp:BoundField>
            <asp:BoundField HeaderText="消耗金额" DataField="TotalUsePrice" >
            <HeaderStyle Wrap="False" />
            <ItemStyle Wrap="False" />
            </asp:BoundField>
            <asp:BoundField HeaderText="收费金额" DataField="TotalEarnPrice" >
            <HeaderStyle Wrap="False" />
            <ItemStyle Wrap="False" />
            </asp:BoundField>           
        </Columns>
        <PagerTemplate>
            本类记录<span style="color: Red"><%= tjGridView.PageSize * tjGridView.PageCount%></span>条,
            <span style="color: Red">20</span>条/页 当前 <span style="color: Red">
                <%= tjGridView.PageIndex + 1%>/<%= tjGridView.PageCount%></span>页
            <asp:LinkButton CommandName="Page" CommandArgument="First" ID="LinkButton1" runat="server"
                Style="color: blue">首页</asp:LinkButton><asp:LinkButton CommandName="Page" CommandArgument="Prev"
                    ID="LinkButton2" runat="server" Style="color: blue">|上一页</asp:LinkButton>
            <asp:LinkButton CommandName="Page" CommandArgument="Next" ID="LinkButton3" runat="server"
                Style="color: blue">下一页</asp:LinkButton><asp:LinkButton CommandName="Page" CommandArgument="Last"
                    ID="LinkButton4" runat="server" Style="color: blue">|尾页</asp:LinkButton>
            转到<asp:DropDownList ID="pageDDL" runat="server" AutoPostBack="True" OnSelectedIndexChanged="pageDDL_SelectedIndexChanged">
            </asp:DropDownList>
        </PagerTemplate>
    </asp:GridView>
    <%--<table>
    <tr>
    <td>总计采购量</td>
    <td>
        <asp:Label ID="Label1" runat="server" Text=""></asp:Label>    
    </td>
     <td>总计消耗量</td>
    <td>
        <asp:Label ID="Label2" runat="server" Text=""></asp:Label>    
    </td>
     <td>总计采购金额</td>
    <td>
        <asp:Label ID="Label3" runat="server" Text=""></asp:Label>    
    </td>
     <td>总计消耗金额</td>
    <td>
        <asp:Label ID="Label4" runat="server" Text=""></asp:Label>    
    </td>
    </tr>
    </table>--%>
</asp:Content>
